<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width = device-width, initial-scale = 1.0, maximum-scale = 1.0, user-scalable = 0" />
    <title>天天外链微信卡片制作</title>
    <link rel="stylesheet" type="text/css" href="https://res.wx.qq.com/open/libs/weui/2.4.0/weui.min.css">
    <script src="//file.wailian1.cn/assets/js/v2/jquery-3.5.1-min.js?v=2023070301"></script>
</head>

<body style="background-color:#000000;">
    <div id="demo">
        <img src="https://res.wailian1.cn/uploads/20230817/9359707.png" style="width: 100%;">
    </div>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
    <script>
        wx.config({
            debug: false,
            appId: '{{ $paramas["appid"] }}',
            timestamp: '{{ $paramas["timestamp"] }}',
            nonceStr: '{{ $paramas["nonceStr"] }}',
            signature: '{{ $paramas["signature"] }}',
            jsApiList: ['updateAppMessageShareData','updateTimelineShareData']
        });
        wx.ready(function() {
            wx.updateAppMessageShareData({
                title: '{{ $linksInfo["title"] }}',
                desc: '{{ $linksInfo["describe"] }}',
                link: '{{ $shareUrl }}',
                imgUrl: '{{ $linksInfo["logo"] }}',
                success: function() {
                }
            });
            wx.updateTimelineShareData({
                title: '{{ $linksInfo["title"] }}', 
                link: '{{ $shareUrl }}',
                imgUrl: '{{ $linksInfo["logo"] }}', 
                success: function() {
                }
            })
        });

        wx.error(function(res) {
            alert(res.errMsg);
        });
    </script>
</body>

</html>
